home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
internet
/
other
/
ka9q
/
nhclb120.zoo
/
myopen.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-06-18
|
379 b
|
24 lines
/*
* Quick kludge to set file buffer size for stdio...
* 2-20-89, 17:05 -- hyc
*/
#include <stdio.h>
FILE *myopen(name,mode)
char *name, *mode;
{
FILE *fp;
char *buf, *malloc();
int size=30720;
fp = fopen(name,mode);
if (fp != NULL) {
#if 0
/* disable this for now - dje */
if ((buf=malloc(size)) != NULL)
setbuffer(fp, buf, size);
#endif
}
return(fp);
}